const http = require('http');
const server = http.createServer();
server.on('request', (req, res) => {
    const str = `我是your request url is ${req.url},and request method is ${req.method}`;
    console.log(str);
});

server.listen(80, () => {
    console.log('server running is at http://127.0.0.1');
});